package com.ck.dao;

import com.ck.model.common.Button;

import java.util.List;

public interface ButtonMapper {

    int insertSelective(Button record);

    int updateByPrimaryKeySelective(Button record);

    /**
     * 根据用户查询用户的按钮权限
     *
     * @param userId 用户ID
     * @return List<Button>
     */
    List<Button> listByUserId(Long userId);
}